<template>
    <el-container style="height: 100%">
        <el-aside width="auto">
            <CommenAside></CommenAside>
        </el-aside>
        <el-container>
            <el-header>
                <CommenHeader></CommenHeader>
            </el-header>
            <CommenTag></CommenTag>
            <el-main>
                <router-view></router-view>
            </el-main>
        </el-container>
    </el-container>
</template>

<script>
import CommenAside from '../components/CommenAside.vue'
import CommenHeader from '../components/CommenHeader.vue'
import CommenTag from '@/components/CommenTag.vue';
export default {

    name: 'Main',
    components: {
        CommenAside,
        CommenHeader,
        CommenTag
    },
    data() {
        return {
            isCollapse: true
        }
    },
    methods: {
        handleOpen(key, keyPath) {
            console.log(key, keyPath);
        },
        handleClose(key, keyPath) {
            console.log(key, keyPath);
        }
    }
}
</script>

<style lang="less" scoped>
.el-header {
    background-color: #333;
}

.el-main {
    padding-top: 0;
}

.el-menu-vertical-demo:not(.el-menu--collapse) {
    width: 200px;
    min-height: 400px;
}
</style>